/*
 * @Description: 宠物属性管理
 * @Author: 龙春雨
 * @Date: 2023-04-06 14:07:24
 */
// import { rule } from '@/util/validateRules';
export const tableOption = {
  ...window.$crudMixins.tableOptions,
  viewBtn: false,
  addBtn: true,
  editBtn: true,
  delBtn: true,
  labelWidth: 100,
  searchLabelWidth: 90,
  dialogCustomClass: 'dialog-classify',
  span: 24,
  menuWidth: 160,
  column: [
    {
      label: '宠物属性',
      prop: 'attributeName',
      row: true,
      span: 12,
      search: true,
      editDisabled: true,
    },
    {
      label: '宠物属性码',
      prop: 'attributeCode',
      row: true,
      span: 12,
      editDisabled: true,
    },
    {
      label: '是否支持搜索',
      prop: 'queryFlag',
      type: 'switch',
      value: '0',
      dicData: [
        {
          label: '关',
          value: '0',
        },
        {
          label: '开',
          value: '1',
        },
      ],
    },
    {
      label: '说明',
      prop: 'remark',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
    },
    {
      label: '创建时间',
      prop: 'createTime',
      width: 150,
      search: true,
      searchType: 'daterange',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
    },
  ],
  group: [
    {
      label: '说明',
      prop: 'remarkGroup',
      arrow: false,
      labelWidth: 0,
      column: [
        {
          placeholder: '请输入宠物属性说明',
          prop: 'remark',
          type: 'textarea',
          maxlength: 100,
          minRows: 7,
          showWordLimit: true,
        },
      ],
    },
  ],
};
